class Point {
	double x, y, z;
	public Point(double _x, double _y, double _z) {
		x = _x;
		y = _y;
        z =	_z;
	}
	public double getDistance(Point p) {
		return Math.sqrt((x - p.x) * (x - p.x) + (y - p.y) * (y - p.y) + (z - p.z));
	}
}
class xuanpi {
	public static void main(String[] args) {
		Point p = new Point(3.0, 4.0 , 5.0);
		Point origin = new Point(1.0, 2.0, 3.0);
		System.out.println("两点的距离为:" + p.getDistance(origin));
	}
}